<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic"
	prefix="logic"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean"
	prefix="bean"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html"
	prefix="html"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://displaytag.sf.net/el" prefix="display-el"%>
<%@ taglib uri="ford-arg/tags" prefix="ft"%>
<script language="javascript">

	function goProcesSupplier() {
		document.InterfazForm.action = "InterfazBMSupplierAction.do";
		document.InterfazForm.submit();
	}

	function goProcesUsage() {
		document.InterfazForm.action = "InterfazBMUsageAction.do";
		document.InterfazForm.submit();
	}
	
	function goProcesWipsParts() {
		document.InterfazForm.action = "InterfazWipsPartsAction.do";
		document.InterfazForm.submit();
	}
	
	function goProcesPrice() {
		document.InterfazForm.action = "InterfazCepsPriceAction.do";
		document.InterfazForm.submit();
	}
	
</script>
<table>
	<tr>
		<td colspan="2">
		<h2>Interfaz</h2>
		</td>
	</tr>
</table>
<br />
<html:form action="/InterfazBMSupplierAction">
	<table border="1" width="449" height="71">

		<tr>
			<td colspan="2" height="54">Supplier</td>
			<td colspan="2" height="54">Parts</td>
		</tr>
		<tr>
			<td height="56">
				<html:file property="archivo" accept="">Supplier - Interfaz BM</html:file>
			</td>
			<td width="195" height="56">
				<html:button property="goSupplier" onclick="goProcesSupplier()">Proveedores</html:button>
			</td>
			<td height="56">
				<html:file property="fileWipsParts" accept="">Piezas - InterfazWips </html:file>
			</td>
			<td width="195" height="56"><html:button property="goSupplier"
				onclick="goProcesWipsParts()">Piezas</html:button></td>
		</tr>
		<tr>
			<td colspan="2" height="47"><bean:write name="InterfazForm"
				property="resultS" /></td>
			<td colspan="2" height="47">
				<bean:write name="InterfazForm"	property="resultsParts" />
			</td>

				
		</tr>
		<tr>
			<td colspan="2" height="47">RuninChange</td>
		</tr>
		<tr>
			<td height="51">
				<html:file property="archivo2">RuningChange - Interfaz BM</html:file>
			</td>
			<td width="195" height="51">
				<html:button property="goUsage" onclick="goProcesUsage()">RunningChange</html:button>
			</td>
			<td height="51">
				<html:file property="fileWipsPrice">Precio de Piezas - Interfaz Wips</html:file>
			</td>
			<td width="195" height="51">
				<html:button property="goPrices" onclick="goProcesPrice()">Precio de Piezas</html:button>
			</td>
		</tr>
		<tr>
			<td colspan="2" height="47">
				<bean:write name="InterfazForm" property="resultBM" />
			</td>
			<td colspan="2" height="47">
				<bean:write name="InterfazForm" property="resultsPrice" />
			</td>
				
		</tr>
	</table>
</html:form>
